package com.hopu.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormatGetTime {
    public static long getTime(String nowdate) throws ParseException {
        // 时间类型转为时间戳
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        Date date = simpleDateFormat.parse(nowdate);
        long mbegintime = date.getTime();
        return mbegintime;
    }
}
